import service from '@/utils/request'


export const invitationApi = (id: number) => {
	return service.get('/new/new/invitation/' + id)
}

export const invitationListApi = () => {
	return service.get('/new/new/invitation/allList')
}

export const invitationSubmitApi = (dataForm: any) => {
	if (dataForm.id) {
		return service.put('/new/new/invitation', dataForm)
	} else {
		return service.post('/new/new/invitation', dataForm)
	}
}


